package com.rizzo.infrastructure.quota;

import java.lang.annotation.*;

/**
 * Annotation to mark a method for anti-abusing. This means the method will only produce a response
 * when the maxCalls isn't reached in the indicated amount of xpireSeconds interval.
 */
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Quota {

    long maxCalls();

    long expireSeconds();

}
